<template>
    <!-- app系统状态栏高度占位组件：用于取消原生导航栏的app页面 -->
    <view>
        <!-- #ifdef H5 -->
        <view style="padding-top: 20rpx"></view>
        <!-- #endif -->
        <!-- #ifndef H5 -->
        <view :style="{ height: `${statusBarHeight}px` }"></view>
        <!-- #endif -->
    </view>
</template>

<script setup lang="ts">
const statusBarHeight = ref()
onLoad(() => {
    // #ifndef H5
    statusBarHeight.value = uni.getSystemInfoSync().statusBarHeight //手机状态栏的高度
    // #endif
})
</script>

<style lang="scss" scoped></style>
